# -*- coding: utf-8 -*-
# @Time    : 2018/1/11 17:27
# @Author  : xincheng.zhao
# @File    : realtimeview.py
# @Software: PyCharm
from django.http import HttpResponse
from django.shortcuts import render
from bsfault.models import info


def fault_real(request):
    info(fault_events=request.POST.get('event')).save()
    return HttpResponse(0)


def real_time(request):
    return render(request, 'real_time.html')
